package com.dbsecurity.mapper;

import com.dbsecurity.pojo.Role;
import com.dbsecurity.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author jie
 * @date 2019/3/19 0019 -15:20
 */
@Mapper
public interface UserMapper {

    User loadUserByUsername(String username);
    List<Role> getUserRolesByUid(Integer id);

}
